@Echo Off
CLS
Mode 62, 9
Color F9

Set Char=C: D: E: F: G: H: I: J: K: L: M: N: O: P: Q: R: S: T: U: V: W: X: Y: Z:

for %%i in (%Char%) do if exist %%i\SETUP.exe Goto Confirm

for %%i in (%Char%) do if not exist %%i\SETUP.exe Goto Missing

:Confirm
set CDROM=%%i
set AnswerFile=.\unattend.txt
set SetupFiles=%CDROM%:\i386

::%CDROM%:\i386\winnt32 /s:%SetupFiles% /unattend:%AnswerFile% /copysource:lang
%CDROM%:\i386\winnt32 /s:%SetupFiles% /unattend:%AnswerFile%

Goto TheEnd

:Missing
set CDROM=Error Unknown Occur
CLS
Echo.
echo %CDROM%
pause
Goto TheEnd

:TheEnd
Exit